<template>
	<view class="content">
		<view class="title">
			{{Details.title}}
		</view>
		<view class="tip">
			<view>{{Details.createBy}}</view>
			<view>{{Details.createTime | jiequ}}</view>
		</view>
		<view class="conten">
			<rich-text :nodes="Details.content"></rich-text>
		</view>
	</view>
</template>

<script>
	import CHONG from '../../static/js/function.js';
	export default {
		data() {
			return {
				Details: {}
			}
		},
		onLoad() {
			uni.getStorage({
				key: "xiangqing",
				success: (res) => {
					console.log(res.data);
					this.Details = res.data;
					this.Details.content = this.Details.content.replace(
						/\<p/gi,
						'<p style="margin:10px;"'
					);
					uni.removeStorage({
						key: "xiangqing",
						success: (res) => {
							console.log('清除成功');
						}
					})
				}
			});
		},
		methods: {

		},

	}
</script>

<style>
	.title {
		font-size: 50upx;
		text-align: center;
	}

	.tip {
		margin: 20upx 0;
		padding: 0 50upx;
		font-size: 30upx;
		color: #888888;
		display: flex;
		justify-content: space-between;
	}

	.conten {
		margin: 50upx 0;
		padding: 0 20upx;
	}

	uni-rich-text {
		text-indent: 2em;
	}
</style>
